﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CourseSystem.Common.Helpers
{
    public class TextHelper
    {
        public static string DisplayText(string text,int length)
        {
            if (string.IsNullOrEmpty(text))
                return text;
            if (text.Length <= length)
                return text;
            return text.Substring(0, length)+"...";
        }
    }
}
